package com.testfileupload.uploadimg.design.strategy;

public class Zhaoyun {
    public static void main(String[] args) {
        Context context;
        IStrategy strategy = new BackDoor();
        //第一个锦囊
        context = new Context(strategy);
        context.operate();
        //第二个锦囊
        context = new Context(new GivenGreenLight());
        context.operate();
        //第三个锦囊
        context = new Context(new BlockEnemy());
        context.operate();
    }
}
